var permissionPlugin = {
    permission: function(location,successCallback, errorCallback,message) {

        cordova.exec(
            successCallback, // success callback function
            errorCallback, // error callback function
            'PermissionPlugin', // mapped to our native Java class called "CalendarPlugin"
            location, // with this action name
            [{                  // and this array of custom arguments to create our entry
                "sendMessage":message,
            }]
        );
    }
}